<div style="width: 100%;height:120px;padding-top: 20px;padding-top: 20px;padding-left: 10px; background: #fff;" >
    <div style="width:60px;float: left;margin-right:10px;">
        <img src="/uploads/face/{$member.head_img}" id="img11"  onerror="this.src='/static/admin/images/head_default.gif'"  style="width: 60px;height: 60px;">
    </div>
    <div style="float: left;width: 178px;">
        <div style="width: 178px;overflow: hidden;padding-top: 3px;">{$member.nickname}</div>
        <div style="width: 178px;overflow: hidden;padding-top: 12px;">帐号:{$member.account}</div>
        <div style="width: 178px;overflow: hidden;padding-top: 12px;">积分:<span id="jifen">{$member.integral}</span> <span style="float: right;padding-right: 20px;">  <a href="javascript:;" onclick="user_sign()" >

                        <span style="padding: 3px 5px;color: #fff;background: #1ee0a5;border-radius: 3px;font-size: 12px;" id="daysign">
                         {if condition="$is_sign==0"}签到{else}已签到 {/if}
                        </span>
        </a></span></div>
    </div>
</div>

<div class="list-group">
    <a href="{:url('user_index')}" class="list-group-item {if condition='$m==1'}active{/if}" style="border-bottom: 2px #f5f5f5 solid;"><i class="fa fa-home "></i>首页</a>

    <a class="list-group-item " ><i class="fa fa-tags"></i>文章</a>
    <a href="{:url('write')}" class="list-group-item {if condition='$m==2'}active{/if}" style="padding-left: 85px;padding-top:0px;padding-bottom: 10px;">写文章</a>
    <a href="{:url('user_column')}" class="list-group-item {if condition='$m==18'}active{/if}"  style="padding-left: 85px;padding-top:10px;padding-bottom: 20px; ">栏目管理</a>
    <a href="{:url('myarticle')}" class="list-group-item {if condition='$m==3'}active{/if}"  style="padding-left: 85px;border-bottom: 2px #f5f5f5 solid;padding-top:10px;padding-bottom: 20px; ">文章列表</a>
    <a class="list-group-item" ><i class="fa fa-file-text-o"></i>征文</a>
    {if condition="$member['group_id'] == 8"}
    <a href="{:url('write_essay')}" class="list-group-item {if condition='$m==4'}active{/if}"  style="padding-left: 85px;padding-top:0px;padding-bottom: 10px;">发征文</a>
    <a href="{:url('myessay')}" class="list-group-item {if condition='$m==5'}active{/if}"  style="padding-left: 85px;border-bottom: 2px #f5f5f5 solid;padding-top:10px;padding-bottom: 20px;">征文列表</a>
    {else}
    <a href="{:url('myessay')}" class="list-group-item {if condition='$m==5'}active{/if}" style="padding-left: 85px;border-bottom: 2px #f5f5f5 solid;padding-top:9px;padding-bottom: 20px;"><i class="fa fa-file-text-o "></i>已投征文</a>
    {/if}
    <a class="list-group-item " ><i class="fa fa-tags"></i>话题</a>
    <a href="{:url('write_debate')}" class="list-group-item {if condition='$m==6'}active{/if} " style="padding-left: 85px;padding-top:0px;padding-bottom: 10px;">写话题</a>
    <a href="{:url('mydebate')}" class="list-group-item {if condition='$m==7'}active{/if}"  style="padding-left: 85px;border-bottom: 2px #f5f5f5 solid;padding-top:10px;padding-bottom: 20px; ">话题列表</a>
    <a class="list-group-item " ><i class="fa fa-th"></i>数据</a>
    <a href="{:url('tongji')}" class="list-group-item {if condition='$m==15'}active{/if} " style="padding-left: 85px;padding-top:0px;padding-bottom: 10px;">总体</a>
    <a href="{:url('danpian')}" class="list-group-item {if condition='$m==16'}active{/if}"  style="padding-left: 85px;border-bottom: 2px #f5f5f5 solid;padding-top:10px;padding-bottom: 20px; ">单篇</a>
    <a href="{:url('user_info')}" class="list-group-item {if condition='$m==8'}active{/if}" style="border-bottom: 2px #f5f5f5 solid;"><i class="fa fa-gear "></i>我的资料</a>
    <a href="{:url('draft')}" class="list-group-item {if condition='$m==9'}active{/if}" style="border-bottom: 2px #f5f5f5 solid;"><i class="fa fa-folder-open-o "></i>我的草稿箱</a>
    <a href="{:url('collect')}" class="list-group-item {if condition='$m==10'}active{/if}" style="border-bottom: 2px #f5f5f5 solid;"><i class="fa fa-heart-o "></i>我的收藏</a>
    <a href="{:url('gongwen')}" class="list-group-item {if condition='$m==21'}active{/if}" ><i class="fa fa-bell-o "></i>公文管理</a>
    <a href="{:url('temp_message')}" class="list-group-item {if condition='$m==11'}active{/if}" ><i class="fa fa-bell-o "></i>模板消息</a>
    {if condition="$member['id'] == 212212"}
    <a href="{:url('picture')}" class="list-group-item {if condition='$m==19'}active{/if}" style="border-bottom: 2px #f5f5f5 solid;"><i class="fa fa-heart-o "></i>图片管理</a>
    <a href="{:url('nav_manager')}" class="list-group-item {if condition='$m==20'}active{/if}" ><i class="fa fa-bell-o "></i>侧栏管理</a>
    {/if}
</div>

<script type="text/javascript">
    function user_sign(){
        $.post('{:url("article/user_sign")}',
                {id:1},
                function(data){
                    if(data.code==1) {
                        $('#daysign').html('已签到');
                        var jifen = $('#jifen').html();

                        jifen1 = parseInt(jifen)+parseInt(data.data);
                        $('#jifen').html(jifen1);


                        layer.msg(data.msg,{icon:1,time:1000,shade: 0.1,});
                    }else{
                        layer.msg(data.msg,{icon:5,time:1000,shade: 0.1,});
                    }
                });
    }
</script>